//
//  JFUser.m
//  JobFree2.0
//
//  Created by Dale on 2017/6/9.
//  Copyright © 2017年 Dale. All rights reserved.
//

#import "JFUser.h"


@implementation JFUser

+ (instancetype)mainJFUser {
    static JFUser *user = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        user = [[JFUser alloc] init];
    });
    return user;
}

- (void)initWithJFUser:(NSDictionary *)dic {
    self.binding_wechat_id = dic[@"binding_wechat_id"];
    self.company_name = dic[@"company_name"];
    self.email = dic[@"email"];
    self.head_image_url = dic[@"head_image_url"];
    self.mobile_phone = dic[@"mobile_phone"];
    self.nick_name = dic[@"nick_name"];
    self.password = dic[@"password"];
    self.title = dic[@"title"];
    self.user_id = dic[@"user_id"];
    self.user_name = dic[@"user_name"];
}

- (instancetype)initWithUser:(NSDictionary *)dic {
    self = [super init];
    if (self) {
        [self initWithJFUser:dic];
    }
    return self;
}

@end
